package test1;

import java.util.Random;

public class geDouTest {
    public static void main(String[]args){
        geDou r1=new geDou("小美",100,'男');
        geDou r2=new geDou("小玉",100,'男');
        while(true){
            r1.attack(r2);
            if(r2.getBlood()==0){
                System.out.println(r1.getName()+"战胜了"+r2.getName());
                break;
            }

            r2.attack(r1);
            if(r1.getBlood()==0){
                System.out.println(r2.getName()+"战胜了"+r1.getName());
                break;
            }
        }
    }
}


